<%@page import="com.omazan.facace.models.UserSessionDetails"%>
<%@page import="com.omazan.utils.Constants"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>RegisterContent</title>
</head>
<body>
	<form action="/OmazanERP/RegisterUser" method="post">
		<table>
			<tr>
				<td>Enter prefered user name :</td>
				<td><input type="text" name="userName"></td>
			</tr>
			<tr>
				<td>password :</td>
				<td><input type="password" name="userPwd"></td>
			</tr>
			<tr>
				<td>confirm password :</td>
				<td><input type="password" name="repuserPwd"></td>
			</tr>
			<tr>
				<td>First name</td>
				<td><input type="text" name="firstName"></td>
			</tr>
			<tr>
				<td>Last name</td>
				<td><input type="text" name="lastName"></td>
			</tr>
			<tr>
				<td>houseNo</td>
				<td><input type="text" name="houseNo"></td>
			</tr>
			<tr>
				<td>street</td>
				<td><input type="text" name="street"></td>
			</tr>
			<tr>
				<td>city</td>
				<td><input type="text" name="city"></td>
			</tr>
			<tr>
				<td>state</td>
				<td><input type="text" name="state"></td>
			</tr>
			<tr>
				<td>country</td>
				<td><input type="text" name="country"></td>
			</tr>
			<tr>
				<td>mobileNo</td>
				<td><input type="text" name="mobileNo"></td>
			</tr>
			<tr>
				<td>email</td>
				<td><input type="text" name="email"></td>
			</tr>

			<%
				UserSessionDetails userSessionDetails = (UserSessionDetails) session
						.getAttribute("userSessionDetails");
			%>

			<%
				if (userSessionDetails != null) {
			%>
			<tr>
				<td>user type</td>
				<td><input type="radio" name="usertype"
					value="<%=Constants.admin%>"> Admin<br> <input
					type="radio" name="usertype" value="<%=Constants.cust%>">
					Employee<br> <input type="radio" name="usertype"
					value="<%=Constants.emp%>">Customer</td>
			</tr>
			<%
				}
			%>

			<tr>
				<td><input type="submit" value="Register"></td><td></td>
			</tr>
		</table>





	</form>

</body>
</html>